package com.chis.dubbo;

import com.alibaba.fastjson.JSON;
import com.chis.dubbo.service.ITest;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Consumer {
    public static void main(String[] args) {
        try {
            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"consumer.xml"});
            ITest test = (ITest) context.getBean("test");
            test.dubboNacos();
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
